
double lowPassFilter(double input, double old_filoutput, double sampling_time, double time_constant)
{
    double new_filoutput = (( sampling_time * input + time_constant *old_filoutput) / (sampling_time + time_constant)) ;
    return new_filoutput ;
}


